#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	while(scanf("%d", &n)!=EOF){
	for (int i = 1; i <= n; i++)
	{
		for (int j = 1; j <= n - i + 1; j++)
			printf(" ");
		for (int k = 2 * i - 1; k > 0; k--)
		{
			printf("*");
		}
		printf("\n");
	}
	for (int i = 0; i <= 2 * n; i++)
		printf("*");
	printf("\n");
	for (int i = 1; i <= n; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf(" ");
		}
		for (int k = 2 * n + 1 - 2 * i; k > 0; k--)
		{
			printf("*");
		}
		printf("\n");
	}
}
	return 0;
}